export function trim(str) {
    let reg = /[\t\r\f\n\s]*/g;
    if (typeof str === 'string') {
        let trimStr = str.replace(reg,'');
        return trimStr;
    }
    return str
}